package org.example.springmvc.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/talk")
@RestController
public class TalkController {
    @RequestMapping(value = "/hi",method = RequestMethod.POST)
    public String hi() {
        return "hi 遇事问春风乄" ;
    }
    @RequestMapping("hello")
    public String hello(String name) {
        return "hello" + name;
    }
}
